home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global partlist, abug, bbug, piecelist, listparts
- repeat with xxx = 4 to 33
- puppetSprite(xxx, 1)
- end repeat
- repeat with xxx = 41 to 46
- puppetSprite(xxx, 1)
- end repeat
- set bugnumber to 1
- set partlist to [:]
- addProp(partlist, random(4), 1)
- addProp(partlist, 1, random(3) * 2)
- addProp(partlist, random(4), random(5) + 2)
- addProp(partlist, random(4), 1)
- addProp(partlist, random(4), 2)
- addProp(partlist, 1, 2)
- set bbug to random(4)
- repeat with abug = 1 to 4
- if abug <> bbug then
- set abugchan to 9 + ((abug - 1) * 6)
- repeat with thispiece = 1 to 6
- set binky to [:]
- addProp(binky, random(4), 1)
- addProp(binky, 1, random(3) * 2)
- addProp(binky, random(4), random(5) + 2)
- addProp(binky, random(4), 1)
- addProp(binky, random(4), 1)
- addProp(binky, 1, 2)
- repeat while binky = partlist
- set binky to [:]
- addProp(binky, random(4), 1)
- addProp(binky, 1, random(3) * 2)
- addProp(binky, random(4), random(5) + 2)
- addProp(binky, random(4), 1)
- addProp(binky, random(4), 1)
- addProp(binky, 1, 2)
- end repeat
- set sigil to getAt(getAt(piecelist, bugnumber), thispiece)
- set apiece to getAt(getAt(sigil, getPropAt(binky, thispiece)), getAt(binky, thispiece))
- if apiece > 0 then
- set the castNum of sprite (abugchan + thispiece) to apiece
- end if
- end repeat
- end if
- end repeat
- set abug to bbug
- set abugchan to 9 + ((abug - 1) * 6)
- repeat with thispiece = 1 to 6
- set sigil to getAt(getAt(piecelist, bugnumber), thispiece)
- set apiece to getAt(getAt(sigil, getPropAt(partlist, thispiece)), getAt(partlist, thispiece))
- if apiece > 0 then
- set the castNum of sprite (abugchan + thispiece) to apiece
- set apart to "part" & bugnumber & "." & thispiece & "." & getPropAt(partlist, thispiece)
- set apart to getAt(getAt(getAt(listparts, bugnumber), thispiece), getPropAt(partlist, thispiece))
- set the castNum of sprite (3 + thispiece) to apart
- end if
- set the castNum of sprite (40 + thispiece) to 1 + getAt(castnumber, getAt(partlist, thispiece))
- end repeat
- repeat with xxx = 1 to 33
- set the visible of sprite xxx to 1
- end repeat
- end
-